﻿using System.Web;
using System.Web.Optimization;

namespace SIG.Web
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-1.10.2.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                 "~/Scripts/jquery.unobtrusive-ajax.js",
                  "~/Scripts/jquery.validate.js",
                   "~/Scripts/jquery.validate.unobtrusive.js",
                        "~/Scripts/jquery.validate.unobtrusive.bootstrap.js"));



            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css/SigStyle").Include(
        "~/Content/bootstrap/bootstrap.css",
         "~/Content/css/font-awesome.css",
        "~/Content/css/style.css"

        ));

            //================== Admin path ===========================

            bundles.Add(new ScriptBundle("~/Areas/Admin/Content/js/").Include(
                      "~/Areas/Admin/Content/js/bootstrap.js",
                      "~/Content/Plugins/bootbox/bootbox.js",
                       "~/Content/Plugins/toastr/toastr.js",
                         "~/Areas/Admin/Content/js/App.js"
                        ));


            bundles.Add(new StyleBundle("~/Areas/Admin/Content/css/SigStyle").Include(
            "~/Areas/Admin/Content/css/_bootstrap.css",
             "~/Areas/Admin/Content/css/font-awesome.css",
             "~/Areas/Admin/Content/css/style.css",
              "~/Content/Plugins/toastr/toastr.css"
             ));
        }
    }
}
